package 函数式编程.imooc函数思想

object Function {
  def main(args: Array[String]): Unit = {

    hello("wzy")

    println(add(1, 2))
  }

  def hello(name: String): Unit = {
    println(s"$name,hello!")
  }

  def add(x: Int, y: Int): Int = x + y


}
